package com.seven.springfox.plugin.enums;

import com.seven.springfox.plugin.enums.plugin.EnumModelPropertyBuilderPlugin;
import com.seven.springfox.plugin.enums.plugin.EnumParameterBuilderPlugin;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author shenjianeng
 * @date 2020/5/10
 */
@Configuration
public class SwaggerConfiguration {

    @Bean
    public EnumModelPropertyBuilderPlugin enumModelPropertyBuilderPlugin() {
        return new EnumModelPropertyBuilderPlugin();
    }

    @Bean
    public EnumParameterBuilderPlugin enumParameterBuilderPlugin() {
        return new EnumParameterBuilderPlugin();
    }
}
